package br.com.bacabeleireiros.sysbeleza.entity;

import java.io.Serializable;
import java.sql.Time;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "horario")
public class Horario implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Long idHorario;
	private Time hora;

	public Horario() {
		
	}

	@Id
	public Long getIdHorario() {
		return idHorario;
	}

	public void setIdHorario(Long idHorario) {
		this.idHorario = idHorario;
	}

	@Column(name = "hora")
	public Time getHora() {
		return hora;
	}

	public void setHora(Time hora) {
		this.hora = hora;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((idHorario == null) ? 0 : idHorario.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Horario other = (Horario) obj;
		if (idHorario == null) {
			if (other.idHorario != null)
				return false;
		} else if (!idHorario.equals(other.idHorario))
			return false;
		return true;
	}

}
